#pragma once

#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#include <log4cxx/helpers/exception.h>
#include <log4cxx/logstring.h>
#include <log4cxx/propertyconfigurator.h>
#include <iostream>

const char LOG_NAME[] = "voiceServer";

#define DEBUG_MSG(message) LOG4CXX_DEBUG(::log4cxx::Logger::getLogger(LOG_NAME),  message );
#define INFO_MSG(message) LOG4CXX_INFO(::log4cxx::Logger::getLogger(LOG_NAME),  message );
#define WARNING_MSG(message) LOG4CXX_WARN(::log4cxx::Logger::getLogger(LOG_NAME),   message );
#define ERROR_MSG(message) LOG4CXX_ERROR(::log4cxx::Logger::getLogger(LOG_NAME),  message );
#define FATAL_MSG(message) LOG4CXX_FATAL(::log4cxx::Logger::getLogger(LOG_NAME),  message );

